const net=require('net');

let client=net.connect({port:8080},()=>console.log('Connection build.'));
client.on('data',data=>{
    console.log(data.toString());
    client.end();
});
client.on('end',()=>console.log('Connection closed.'));
